"""
数据定义的类
"""


# 记录数据
class Record:

    def __init__(self, data, order_id, money, province):
        # 根据文件，说明需要定义4个成员变量
        self.date: str = data  # 订单日期
        self.order_id: str = order_id  # 订单ID
        self.money: int = money  # 订单金额
        self.province: str = province  # 销售省份

    def __str__(self):
        return f"{self.date},{self.order_id},{self.money},{self.province}"
